from flask import Flask,request

app = Flask(__name__)  # 创建应用实例

@app.route('/hello', methods=["POST"])  # 定义路由
def home():
    print(request.json)
    return request.json

if __name__ == '__main__':
    app.run()  # 启动开发服务器